package com.example.util;

public class Tools {
	//当前时间
		public static final String  ACTION_CTIME = "com.newer.music_currenttime";
		//总时间
		public static final String ACTION_TTIME = "com.newer.music_totaltime";
		//歌曲播放完成
		public static final String ACTION_COMPLETION = "com.newer.music_completion";
		public static final int islocal=0;
		public static final int PLAY = 0;
		public static final int STOP=-1;
		public static final int NEXT = 1;
		public static final int PREV = 2;
		public static final int STARTMEIDA=3;
		public static final int PAUSE = 4;
		public static final int PROGRESS = 5;
		public static final int LOOP_ORDER = 6;//顺序播放
		public static String format(int time) {
			int min = time / 1000 / 60;
			int sec = time /1000 % 60;
			return String.format("%d:%02d", min,sec);
		}
}
